<template>
	<section class="live-page ">
		<iframe style="width: 100%; height: 100%;" :src="url" frameborder="0" scrolling="auto" class="main-live"></iframe>
	</section>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				url: '',
			}
		},
		onLoad(obj) {
			this.id = obj.id;
			console.log(obj, 999)
			this.url = "https://live.polyv.cn/watch/" + this.id;
		},
		onShow() {
			
		},
		onBackPress(event) {
			console.log(event, 88)
		},
	}
</script>

<style lang="less">
	.live-page {
		width: 100%;
		height: 100%;
		overflow: hidden;
		text-align: center;
		.main-live {
			width: 100%;
			height: 100%;
		}

	}
</style>
